
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>{{question.title}} - 知乎</title>

<meta name="description" content="一个真实的网络问答社区，帮助你寻找答案，分享知识。" />

<link rel="apple-touch-icon-precomposed" href="/public/img/ios/zhihu(57px).png" />
<link rel="apple-touch-icon-precomposed" href="/public/img/ios/zhihu(72px).png" sizes="72x72" />
<link rel="apple-touch-icon-precomposed" href="/public/img/ios/zhihu(114px).png" sizes="114x114" />
<link rel="shortcut icon" href="/public/img/favicon.png" type="image/x-icon" />
<link rel="search" type="application/opensearchdescription+xml" href="/public/search.xml" title="知乎" />
<script type="text/javascript" src="/public/js/jquery-latest.min.js" charset="utf-8"></script>
<link rel="stylesheet" href="/public/css/index.css" type="text/css" media="screen,print" />




<style>
#xpf .xoew{display:none}
#xecw li{margin:0}
</style>


</head>
<body>
{% include 'header.html' %}

<div class="xnp" id="xpaw" style="display:none">
<div class="xf">
<div class="xrp">
<a class="xmq" href="javascript:;" title="关闭" name="close">x</a>
<span class="xpp"></span>
<span class="xoaw"></span>
</div>
</div>
</div>
<!--[if lte IE 6]>
<div id="xq">你正在使用的浏览器版本太低，将不能正常浏览本站及使用知乎的所有功能。请升级 <a href="http://windows.microsoft.com/zh-CN/internet-explorer/downloads/ie">Internet Explorer</a> 或使用 <a href="http://www.google.com/chrome/">Google Chrome</a> 浏览器。</div>
<![endif]-->


<div class="xnp xmp" id="xllw" style="display:none"></div>

<div class="xnp xmp" id="xecw"
style="display:none" >
<div class="xf">
<div class="xrp">

<a class="xmq" href="javascript:;" title="取消提问" name="close">x</a>
<span class="xpp"></span>
<ul class="xtd"></ul>

</div>
</div>
</div>
<div class="xf xcp" id="xqcw"
data-urltoken="20329801"
data-showsummary="0"
style="">
<div class="xbp">
<div class="xap" id="xxd" >
<div class="xmd xu" id="topic_edit">
<div class="xej xe" id="topic_show">

{% for topic in question.topic %}
<a class="xsk"
href="/topic/{{topic.name}}"
data-tip="t$b${{topic.name}}" data-token="{{topic.name}}" data-topicid="{{topic.id}}">
{{topic.name}}
</a>
{% end %}
<a href="javascript:;" class="xjg" name="edit" id="topic_edit_button"><span class="xgg"></span>修改</a>

</div>
</div>

<div id="xqg">

<h2 class="xon xxkw" data-disabled="0" id="title_show">
    <h>{{question.title}}</h>
    <a href="javascript:;" class="xjg" name="edit" id="title_edit_button"><span class="xgg"></span>修改</a>
</h2>

<div class="xpg" id="title_edit"style="display: none;">
<div class="xng"><div class="xsj"><textarea class="xlg" id="title_textarea"></textarea></div></div>
<div class="xxdw" style="padding-top: 10px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><a class="xvv xhv" href="http://www.zhihu.com/question/19550238/answer/12202028" target="_blank">为什么问题可以被公共编辑？</a><span>
<select>
<option value="none">请选择一个修改理由...</option>
<option value="不构成问题，需要改写">1. 不构成问题，需要改写</option>
<option value="文字冗长，需要精简">2. 文字冗长，需要精简</option>
<option value="信息不足，需要补充">3. 信息不足，需要补充</option>
<option value="带有个人判断，问题不成立">4. 带有个人判断，问题不成立</option>
<option value="改进标点、格式或文字">5. 改进标点、格式或文字</option>
<option value="other">6. 其它</option>
</select>
</span>
<span class="xaw"> * 必选</span>
<div class="xsj" style="height: 22px; margin-top: 10px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; display: none; ">
<textarea style="width: 100%; height: 22px !important; min-height: 22px !important; "></textarea></div></div>
<div class="xkw"><a class="xdv" name="cancel" href="javascript:;" id="title_cancel">取消</a>
<a class="xd xow" name="save" href="javascript:;" id="title_save">保存</a></div></div>
    
    
</div>
<div id="xqf"
data-resourceid="312220"
data-action="/question/detail">
<div class="xxkw" data-disabled="0" id="detail_show">
    <h>{{question.detail}}</h>
    <a href="javascript:;" class="xjg" name="edit" id="detail_edit_button"><span class="xgg"></span>修改</a>
</div>

<div class="xpg" id="detail_edit" style="display: none;">
<div class="xng"><div class="xsj"><textarea class="xlg" id="detail_textarea"></textarea></div></div>
<div class="xxdw" style="padding-top: 10px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><a class="xvv xhv" href="http://www.zhihu.com/question/19550238/answer/12202028" target="_blank">为什么问题可以被公共编辑？</a><span>
<select>
<option value="none">请选择一个修改理由...</option>
<option value="增加相关补充说明">1. 增加相关补充说明</option>
<option value="删减不合适的补充说明">2. 删减不合适的补充说明</option>
<option value="改进标点、格式或文字">3. 改进标点、格式或文字</option>
<option value="other">4. 其它</option>
</select>
</span>
<span class="xaw"> * 必选</span>
<div class="xsj" style="height: 22px; margin-top: 10px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; display: none; ">
<textarea style="width: 100%; height: 22px !important; min-height: 22px !important; "></textarea></div></div>
<div class="xkw"><a class="xdv" name="cancel" href="javascript:;" id="detail_cancel">取消</a>
<a class="xd xow" name="save" href="javascript:;" id="detail_save">保存</a></div></div>

</div>


<div class="xqp xoj" id="xnm">
<a href="javascript:;" name="addcomment" class="xhv" id="xpcw">{{question.cnt_comment}} 条评论</a>
<span class="xlv">&bull;</span>
<a href="/question/{{question.id}}/log" class="xhv">修改记录</a>
<span class="xlv">&bull;</span>
<a href="javascript:;" name="report" class="xhv">举报问题</a>


</div>

<div class="xgd xu"></div>
<div id="xpf" class="xh" style="display:none;">
<h3>
<a href="/question/答案总结" target="_blank" class="xvv xhv" style="font-weight:normal">什么是答案总结？</a>
答案总结</h3>
<div class="xu"
id="xqew"
data-resourceid="312220"
data-action="/question/summary">
<div class="xxkw"></div>
</div>
</div>
<div id="xmcw" style="display:none">
<select><option value="default">default</option></select>
</div>

<div class="xh" id="xklw">
<div id="xdcw" class="xvv">
<a name="vote" href="javascript:;" class="xsv">按投票排序</a><span class="xkv">|</span><a href="javascript:;" class="xhv" name="added_time">按时间排序</a><span class="xkv">|</span><a name="filter" href="javascript:;" class="xhv">只显示我关注的人</a>
</div>
<h3>
{% if question.cnt_answer == 0 %}
<span id="xkcw">还没有答案</span>
{% else %}
<span id="xkcw">{{question.cnt_answer}} 个答案</span>
{% end %}

</h3>
</div>

<div id="xjf">
<span id="xhcw"></span>
{% for answer in answers %}
<div class="xco "
data-aid="{{answer.aid}}"
data-atoken="14781130"
data-score="0.0"
data-collapsed="0"
data-isowner="0"
data-isfriend="0"
data-created="1341379897"
data-deleted="0">

{% if answer.status == 1 %}
<div class="xao xfn">
<a name="voteup" href="javascript:;" class="xhn" data-tip="取消赞同">+</a>
<a name="votedown" href="javascript:;" class="xgn" data-tip="反对，不会显示你的姓名">-</a>
</div>
{% elif answer.status == -1 %}
<div class="xao xen">
<a name="voteup" href="javascript:;" class="xhn" data-tip="赞同">+</a>
<a name="votedown" href="javascript:;" class="xgn" data-tip="取消反对">-</a>
</div>
{% else %}
<div class="xao ">
<a name="voteup" href="javascript:;" class="xhn" data-tip="赞同">+</a>
<a name="votedown" href="javascript:;" class="xgn" data-tip="反对，不会显示你的姓名">-</a>
</div>
{% end %}
<div class="xnn">
<a name="vote-num" class="xzo" href="javascript:;" data-votecount="0">0</a>
</div>

<div class="xin">

<div class="xylw">
<h3 class="xzn">
<a data-tip="p$t$ma-chi-chu"
class="xbo"
href="/people/ma-chi-chu">
<img src="#" class="xvo">
</img>
</a>
<a data-tip="p$t$ma-chi-chu" href="/people/ma-chi-chu">{{escape(answer.name)}}</a>，<strong title="{{escape(answer.signature)}}" class="xwkw">{{escape(answer.signature)}}</strong>
</h3>
</div>



<div class="xcn" data-votecount="{{answer.cnt_agree}}">
{%if answer.cnt_agree > 0%}
{{answer.cnt_agree}} 票，来自
<span class="xdhw">
{% for vote in answer.votes %}
<a data-tip="p$t$vote.url" href="/people/vote.url" class="xsv" title="{{vote.name}}" data-authorid="">{{ vote.name }}</a>
{% if vote.id_user <> answer.votes[-1].id_user %}
、
{% end %}
{% end %}
{%if answer.cnt_agree > 3%}
<a href="javascript:;" name="showvoters" class="xsv xchw"> 更多 </a>
{% end %}

</span>
{% end %}
</div>


<div class="xbn" data-resourceid="resourceid" data-action="/answer/content">
<div class="xxkw xof">{{answer.content}}</div>
</div>

<div class="xqp xoj xgf">
<a class="xsv" data-gaq="feed|click_answer_link|feed_answer" href="/question/20329801/answer/14781130">{{answer.tm_add}}</a>
<span class="xlv">&middot;</span>
<a href="javascript:;" name="addcomment" class="xsv xukw xdf">
<span class="xcf xbf"></span>添加评论</a>
<a href="javascript:;" data-gaq="feed|share_answer|feed_answer"
class="xy xsw xsv xdf"
name="share"><span class="xcf xwe"></span>分享</a>

{% if answer.thank == 1%}
<a href="javascript:;"
class="xy xsw xsv xdf xef"
name="">
<span class="xcf xaf"></span>已感谢</a>
{% else%}
<a href="javascript:;"
class="xy xsw xsv xdf"
name="thanks">
<span class="xcf xaf"></span>感谢</a>
{% end %}


<a href="javascript:;"
class=" xy xsw xsv xdf zu-question-answer-meta-fav" name="favo">
<span class="xcf xyf"></span>收藏</a>

<a href="javascript:;"
class="xy xsw xsv xdf"
name="nohelp">
{% if answer.nohelp == 1%}
<span class="xcf xxe"></span>取消没有帮助</a>
{% else %}
<span class="xcf xxe"></span>没有帮助</a>
{% end %}



<span class="xlv xsw">&middot;</span>

<a href="javascript:;" class="xsw">

<b class="copy_icon_1"></b><b class="copy_icon_2"></b><b class="copy_icon_3"></b>


</a>

</div>

</div>
</div>
{% end %}

</div>
<div id="xgcw" class="xcd">
<a target="_blank" href="/question/20120168" class="xvv xhv">为什么会被折叠？</a>
<a href="javascript:;" name="expand" class="xsv" id="xccw">
<span id="xfcw">0</span>
个答案被折叠
</a>
</div>
<div id="xif" style="display:none"></div>
<a name="draft"></a>
<div id="xkew" data-isabout="0">
<div class="xuew xkd" style="display: none; "></div>
<div class="xxkw" style="display: none; ">
    <a href="javascript:;" class="xjg" name="edit">
        <i class="xgg"></i>修改
        </a>
</div>
<div class="xpg">
<form action="/answer" method="POST" id="answer_form">
    <div>
        <div class="xld xwv">添加答案</div>
        <div>
        <a href="/people/user.url" title="{{user.get('name')}}" class="xbo" data-tip="p$t$user.url"><img src=".jpg" class="xvo"></a>
            <div class="xld">
            <a href="/people/user.url" title="{{user.get('name')}}" data-tip="p$t$urer.url">{{user.get('name')}}</a>
                <span>，{{user.get('sex')}}<a name="edit_bio" class="xjg" href="javascript:;"> <i class="xgg"></i>修改话题经验</a></span>
            </div>
            <div>
                <a href="javascript:;" name="set_anon" class="xbw">切换为匿名状态</a>
            </div>
        </div>
        <div class="xng">
        <script src="/public/TQEditor/TQEditor.min.js" type="text/javascript"></script>
        <textarea id="answer" rows="6" cols="74" name="content"></textarea>
        </div>
        <input type="hidden" name="qid" value="{{question.id}}" />
            <div class="xkw"><div class="xog xjw"></div><a class="xdv xalw" href="javascript:;">保存草稿</a><a class="xd xow" name="save" onclick="javascript:$('#answer_form').submit();">添加答案</a></div>
      </div>
</form>
</div>
</div>
<script type="text/javascript" defer="true">
new tqEditor('answer',{toolbar:['bold','italic','underline','|','unorderedlist','orderedlist', '|', 'insertimage', 'insertflash', '|', 'removeformat', 'fullscreen']});
</script>
<!-- end of content -->
</div>
</div>
<div class="xzp">
<div class="xem">
<div class="xcm" id="xdd">

{% if question.follow == -1 %}
<a class="xnw xww xub" href="javascript:;" id="sfb-312220">关注</a>
{% else %}
<a class="xnw xww xmw" href="javascript:;" id="sfb-312220">取消关注</a>
{% end %}

<a class="xmw" id="xjlw"><span class="xrw"></span></a>

</div>
</div>

<div class="xem" id="xwc">
<div class="xcm">
<h3>邀请别人回答问题</h3>

<div id="xelw" >
<div class="xu">
<a href="javascript:;" id="xilw">站内邀请</a> <span
class="xbw">或者</span> <a href="javascript:;" id="xhlw" name="mail">邮件邀请</a>
</div>
<div id="xclw" style="display:none">
<div class="xu">
<input type="text" id="xnf" class="xsj"/>
</div>
<div class="xvd xe">
</div>
<div class="xnd"></div>
<div class="zg-border-fix"></div>
</div>
</div>
<div id="xflw" style="display: none;">
<div class="xaw">取消使用匿名身份才能邀请人回答问题。</div>
</div>

<div style="display:none">
<div id="xafw">
<ul class="xlm xe">
<li class="xkm" style="display:none">
<a href="javascript:;" class="xjm" id="tb-sina">微博邀请</a>
</li>
<li class="xkm">
<a href="javascript:;" class="xjm xim" id="tb-mail">邮件邀请</a>
</li>
</ul>
<div class="xtlw" id="tb-sina-bind-content" style="display: none;">
<div style="padding:15px 0">
<a href="/oauth/auth/sina?next=/oauth/callback" target="_blank" id="xug">绑定新浪微博</a>
<a href="/oauth/auth/qq?next=/oauth/callback" target="_blank" id="xfe">绑定腾讯微博</a>
</div>
<div class="xkw">
<a class="xdv" name="cancel" href="javascript:;">取消</a>
</div>
</div>
<div class="xtlw" id="tb-sina-content" style="display: none;">
<div style="display: none;">
<div class="xu">输入微博用户名邀请 <span class="xbw">(你已绑定新浪帐号</span> <span class="xhv"
id="xzfw">
</span>
<span class="xbw">)</span></div>
<div class="xu" id="xvc">
<a href="javascript:;" class="xvv xmv" id="xglw"
style="margin:3px 5px 0 0">刷新</a>
<div class="xmnw" style="display:none"></div>
<input class="xsj"/>
</div>
<div class="xu">
<div class="xsj">
<textarea id="xyfw" style="width:100%" data-content=""></textarea>
</div>
</div>
<div class="xkw">
<a class="xdv" name="cancel" href="javascript:;">取消</a>
<a class="xd xow" name="send_sina" href="javascript:;">发送</a>
</div>
</div>
<div class="xaw">由于新浪微博 API 政策变更，通过微博邀请好友回答问题的功能暂时不可用。</div>
<div class="xkw">
<a class="xdv" name="cancel" href="javascript:;">取消</a>
</div>
</div>
<div class="xtlw" id="tb-mail-content">
<dl class="xek xzh">
<dt class="xdk xuj">
<label for="user-name" class="xzw">收件人：</label>
</dt>
<dd class="xrj">
<div><input class="xsj" id="xxew" /></div>
<input class="xsj" id="xwew" readonly value="叶炬峰邀请你到知乎回答问题" style="display:none" />
</dd>
<div class="xe"></div>
<dt class="xdk xuj">
<label for="xvew" class="xzw">内容：</label>
</dt>
<dd class="xrj">
<div class="xsj">
<textarea id="xvew" style="width:100%"
data-content="我在知乎（zhihu.com）上发现了一个好问题《踩离合器时脚后跟着地么？》，想邀请你来回答">
</textarea>
</div>
</dd>
<div class="xe"></div>
</dl>
<div class="xkw">
<a class="xdv" name="cancel" href="javascript:;">取消</a>
<a class="xd xow" name="send_mail" href="javascript:;">发送</a>
</div>
</div>
</div>
</div>
</div>
</div>



<div class="xem">
<div class="xcm">
<h3>相关问题</h3>
<div id="xsf">

{%for item in items%}

<a class="question_link" href="/question/{{item.id}}">

{{item.title}}
</a>

{%end%}
</div>
</div>
</div>



<div class="xem">
<div class="xcm">
<h3>分享问题</h3>
<div id="xdlw">
<a href="javascript:;" name="sina" class="xye"><span
class="xoe xbe"></span>微博</a>
<a href="javascript:;" name="mail" class="xye"><span
class="xoe xme"></span>邮件</a>
<a href="javascript:;" name="letter" class="xye"><span
class="xoe xle"></span>站内私信</a>
<div class="xe"></div>
</div>
<div style="display:none">
<div id="xwlw">
<ul class="xlm xe">
<li class="xkm">
<a href="javascript:;" class="xjm xim" id="tb-webshare-sina">微博分享</a>
</li>
<li class="xkm">
<a href="javascript:;" class="xjm" id="tb-webshare-mail">邮件分享</a>
</li>
<li class="xkm">
<a href="javascript:;" class="xjm" id="tb-webshare-letter">站内信分享</a>
</li>
</ul>
<div class="xtlw" id="tb-webshare-sina-bind-content" style="display: none;">
<div class="xee" >
<a href="/oauth/auth/sina?next=/oauth/callback" target="_blank" id="xug">绑定新浪微博</a>
<a href="/oauth/auth/qq?next=/oauth/callback" target="_blank" id="xfe">绑定腾讯微博</a>
</div>
<div class="xkw">
<a class="xdv" name="cancel" href="javascript:;">取消</a>
</div>
</div>
<div class="xtlw" id="tb-webshare-sina-content" style="display: none;">
<div class="xu">
<span class="" >
<span id="xslw">

<a class="xbw xvv" href="/oauth/auth/sina?next=/oauth/callback" target="_blank">绑定新浪微博</a>

</span>
<span id="xrlw">

<a class="xbw xvv" href="/oauth/auth/qq?next=/oauth/callback" target="_blank" >绑定腾讯微博</a>

</span>
</span>
</div>
<div class="xu">
<div class="xsj">
<textarea style="width:100%" id="xymw"></textarea>
</div>
</div>
<div class="xkw">
<div class="xqp xjw"><span id="xqlw">还可以输入 140
字</span>
</div>
<a class="xdv" name="cancel" href="javascript:;">取消</a>
<a class="xd xow" id="xolw" name="send_sina" href="javascript:;">发布</a>
</div>
</div>
<div class="xtlw" id="tb-webshare-mail-content" style="display: none;">
<dl class="xek xzh">
<dt class="xdk xuj">
<label for="user-name" class="xzw">收件人：</label>
</dt>
<dd class="xrj">
<input class="xsj" id="xplw"/>
</dd>
<div class="xe"></div>
<dt class="xdk xuj">
<label for="xxlw" class="xzw">内容：</label>
</dt>
<dd class="xrj">
<div class="xsj">
<textarea style="width:100%" id="xxlw"></textarea>
</div>
</dd>
<div class="xe"></div>
</dl>
<div class="xkw">
<a class="xdv" name="cancel" href="javascript:;">取消</a>
<a class="xd xow" name="send_mail" href="javascript:;">发送</a>
</div>
</div>
<div id="tb-webshare-letter-content" class="xtlw" style="display: none;"></div>
</div>
</div>

</div>
</div>


<div class="xem">
<div class="xcm">
<h3>问题状态</h3>
<div class="xaw">最近活动：<a href="/question/{{question.id}}/log">16:27</a>
</div>
<div class="xaw">
被浏览 <strong>{{question.cnt_view}}</strong> 次，相关话题关注者 <strong>16059</strong> 人
</div>
<div class="xaw">
<a href="/question/{{question.id}}/followers"><strong>{{question.cnt_follow}}</strong></a>
人关注了该问题
</div>
<div id="zh-question-followers" class="xxc">


<a title="niejianhui" data-tip="p$t$33to9" class="xbo" href="/people/33to9">
<img src="http://p2.zhimg.com/18/ae/18aee8cc7_s.jpg" class="xrn">
</a>




<a title="马驰初" data-tip="p$t$ma-chi-chu" class="xbo" href="/people/ma-chi-chu">
<img src="http://p4.zhimg.com/66/6b/666b0abfc_s.jpg" class="xrn">
</a>




<a title="晏伟" data-tip="p$t$yw1530" class="xbo" href="/people/yw1530">
<img src="http://p4.zhimg.com/4e/01/4e0108ac7_s.jpg" class="xrn">
</a>




<a title="傅淼镕" data-tip="p$t$fu-miao-rong" class="xbo" href=/people/fu-miao-rong">
<img src="http://p2.zhimg.com/2e/a3/2ea32c0b6_s.jpg" class="xrn">
</a>




<a title="李亮" data-tip="p$t$liliang13" class="xbo" href="/people/liliang13">
<img src="http://p3.zhimg.com/83/66/8366f2978_s.jpg" class="xrn">
</a>



</div>
</div>
</div>

</div>

<div class="xe"></div>
</div>

{% include 'button.html' %}

<script type="text/javascript">
<!--
var question_id = {{question.id}};
$('#topic_edit_button').bind('click', function ()
{
	$('#topic_show').hide()
	if($('#topic_search').length == 0)
	{
    	$.ajax({
    		  type: "GET",
    		  url: "/question/topic_edit",
    		  data: "id="+question_id,
    		  success: function(msg){
    		     $('#topic_edit').append(msg);
    		   }
    		}); 
    }
    else
    {
        $('#toipc_xrp').show()
    }
});

$('#title_edit_button').bind('click', function ()
{
	$('#title_show').hide()
	$('#title_edit').show()
	$('#title_textarea').val($('#title_show').children().first().text())
});

$('#title_cancel').bind('click', function ()
{
	$('#title_show').show()
	$('#title_edit').hide()
});

$('#title_save').bind('click', function ()
{
	$('#title_show').show()
	$('#title_edit').hide()
	$('#title_show').children().first().text($('#title_textarea').val())
	$.ajax({
    		  type: "POST",
    		  url: "/question/update_title",
    		  data: {"question_id":question_id, "title":$('#title_textarea').val()},
    		  success: function(msg){
    		     
    		   }
    		}); 
});

$('#detail_edit_button').bind('click', function()
{
    $('#detail_show').hide()
    $('#detail_edit').show()
    $('#detail_textarea').val($('#detail_show').children().first().text())
});

$('#detail_cancel').bind('click', function ()
{
	$('#detail_show').show()
	$('#detail_edit').hide()
});

$('#detail_save').bind('click', function ()
{
	$('#detail_show').show()
	$('#detail_edit').hide()
	$('#detail_show').children().first().text($('#detail_textarea').val());
	$.ajax({
    		  type: "POST",
    		  url: "/question/update_detail",
    		  data: {"question_id":question_id, "detail":$('#detail_textarea').val()},
    		  success: function(msg){
    		     
    		   }
    		}); 
});

$('.xww').bind('click', function()
{
    var status = -1;
    if ($(this).text() == "关注")
    {
        $(this).removeClass("xub")
        $(this).addClass("xmw")
        $(this).text("取消关注")
        status = 1
    }
    else
    {
        $(this).addClass("xub")
        $(this).removeClass("xmw")
        $(this).text("关注")
    }
    
    $.ajax({
    		  type: "POST",
    		  url: "/question/follow",
    		  data: {"question_id":question_id, "status":status},
    		  success: function(msg){
    		     
    		   }
    		}); 
});

function vote_hover() 
{
    if (event.type == "mouseover")
    {
        $("#xlk").text($(this).attr("data-tip"))
        var p = $(this).offset()
        $('#xkk').css({left:p.left + $(this).width() + 4, top:p.top - 5, visibility:"", display: ""})
    }    
    else
    {
        $('#xkk').css({visibility:" hidden", display: " none"})
    }
};

function vote_click(event)
{
    $('#xkk').css({visibility:" hidden", display: " none"})
    var obj = $(this).parent()
    if (event.data.v == 1)
    {
        if (obj.hasClass('xfn'))
        {
            obj.removeClass('xfn')
            obj.children('.xhn').attr({'data-tip':"赞同"})
        }
        else if (obj.hasClass('xen'))
        {
            obj.removeClass('xen')
            obj.addClass('xfn')
            obj.children('.xhn').attr({'data-tip':"取消赞同"})
            obj.children('.xgn').attr({'data-tip':"反对，不会显示你的姓名"})
        }
        else
        {
            obj.addClass('xfn')
            obj.children('.xhn').attr({'data-tip':"取消赞同"})
        }
    }
    else
    {
        if (obj.hasClass('xen'))
        {
            obj.removeClass('xen')
            obj.children('.xgn').attr({'data-tip':"反对，不会显示你的姓名"})
        }
        else if (obj.hasClass('xfn'))
        {
            obj.removeClass('xfn')
            obj.addClass('xen')
            obj.children('.xhn').attr({'data-tip':"赞同"})
            obj.children('.xgn').attr({'data-tip':"取消反对"})
        }
        else
        {
            obj.addClass('xen')
            obj.children('.xgn').attr({'data-tip':"取消反对"})
        }
    }
    
    var aid = $(this).parent().parent().attr("data-aid")
    
    $.ajax({
		  type: "POST",
		  url: "/answer/vote",
		  data: {"aid":aid, "v":event.data.v},
		  success: function(msg){
		    tmp = obj.nextAll('.xin').children('.xcn')
		    tmp.empty()
		    tmp.append(msg)
		   }
		});
	 
};

$('.xhn').bind('hover',vote_hover, vote_hover);
$('.xhn').bind('click', {v:"1"}, vote_click);
$('.xgn').bind('hover',vote_hover, vote_hover);
$('.xgn').bind('click', {v:"-1"}, vote_click);
$('.xchw').bind('click', function()
{
    
});

$('.xdf').bind('click', function()
{
    var name = $(this).attr("name")
    if (name == "thanks")
    {
        $(this).addClass("xef")
        $(this).attr("name", "")
        $(this).html("<span class=\"xcf xaf\"></span>已感谢")
    }
    else if (name == "nohelp")
    {
        if($(this).text().indexOf("取消没有帮助") >= 0)
        {
            name = "help"
            $(this).html("<span class=\"xcf xxe\"></span>没有帮助")
        }
        else
        {
            name = "nohelp"
            $(this).html("<span class=\"xcf xxe\"></span>取消没有帮助")
        }
    }
    
    var aid = $(this).parent().parent().parent().attr("data-aid")
    $.ajax({
		  type: "POST",
		  url: "/answer/"+name,
		  data: {"aid":aid},
		  success: function(msg){
		    
		   }
		});
});

-->
</script>
</body>
</html>
